<div id="left">

<div class='widget HTML' id='floatDiv2'><a href="11223344556688/articles.html" title="yoga dành cho bà bầu"><img src="images/yoga-cho-ba-bau.jpg" alt="yoga dành cho bà bầu" style="border:solid 1px #CCC; margin-bottom:10px" /></a>
<div id="news"><div id="data_news">
<?php
$news = $tc->view_wall_new($idUser);
while($row_news = mysql_fetch_array($news)){
	if($row_news['info_id']!=0){
		$view_news .= '<div class="item"><p><a href="'.$row_news['user_id'].'/"><img src="'.url_hinh_user_40x40.$row_news['avatar'].'.jpg" alt="" /><b>'.$row_news['name'].'</b></a> <a href="index.html?user='.$row_news['user_id'].'&type=detail&id='.$row_news['info_id'].'" style="color:#666">'.$row_news['status'].'</a></p><hr /></div>';
	}else{
		$photo_new = mysql_query("SELECT album_id,user_id FROM photos WHERE id='".$row_news['photo_id']."'");
		$row_photo_new = mysql_fetch_array($photo_new);
		$view_news .= '<div class="item"><p><a href="'.$row_news['user_id'].'/"><img src="'.url_hinh_user_40x40.$row_news['avatar'].'.jpg" alt="" /><b>'.$row_news['name'].'</b></a> <a href="index.html?user='.$row_photo_new['user_id'].'&type=all-pic&album='.$row_photo_new['album_id'].'&id='.$row_news['photo_id'].'" style="color:#666">'.$row_news['status'].'</a></p><hr /></div>';
	}
}
echo $view_news;
mysql_free_result($news);
?>
</div></div>
</div></div>
<script type="text/javascript">
$(document).ready(function(){
	function news(){
		$.post('ajax.php',{news:'news',id:'<?php echo $idUser?>'},function(data){
			$('#data_news').html(data);
		});
	}
	setInterval(function(){news()},15000); });
</script>